package com.his.dao.jpa;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import com.his.pojos.jpa.HisDepartment;

public interface MxjDepartmentDAO extends CrudRepository<HisDepartment, Long> {
	
	@Query("from HisDepartment where ksNo=:ksNo")
	public HisDepartment findDepartment(@Param("ksNo")long ksNo);
	
	@Query("select ksName from HisDepartment where ksNo=:ksNo")
	public String findksName(@Param("ksNo")long ksNo);
}
